<template>
  <u-popup :show="show" mode="center" :safeAreaInsetBottom="false" closeable @close="show = false">
    <view>
        <image :src="src" style="width:100vw;height: auto;" mode="widthFix" @click="show = false" />
    </view>
  </u-popup>
</template>

<script>
export default {
  data () {
    return {
      show: false,
      src: ""
    }
  },
  methods: {
    openModal(src) {
      this.src = src;
      if(src){
        this.show = true;
      }
    }
  }
}
</script>

<style lang="scss" scoped>

</style>